<?php
//Yii::import('ext.multimodelform.MultiModelForm');

class CMultiModelRenderForm extends MultiModelRenderForm
{
    public function renderAddLink()
    {
        $tag = $this->parentWidget->rowWrapper['tag'];
        $htmlOptions = $this->parentWidget->rowWrapper['htmlOptions'];

        $htmlOptions['class'] = !empty($htmlOptions['class']) ? $htmlOptions['class'] . ' mmf_additem' : 'mmf_additem';
		$htmlOptions['class'] .= ' add-item-data';
        return CHtml::tag($tag, $htmlOptions, $this->getAddLink());
    }
}
